Integrand size = 39, antiderivative size = 170 \[ \int \frac {(g \sec (e+f x))^{3/2} \sqrt {a+b \sec (e+f x)}}{c+d \sec (e+f x)} \, dx=\frac {2 b g \sqrt {\frac {b+a \cos (e+f x)}{a+b}} \operatorname {EllipticPi}\left (2,\frac {1}{2} (e+f x),\frac {2 a}{a+b}\right ) \sqrt {g \sec (e+f x)}}{d f \sqrt {a+b \sec (e+f x)}}-\frac {2 (b c-a d) g \sqrt {\frac {b+a \cos (e+f x)}{a+b}} \operatorname {EllipticPi}\left (\frac {2 c}{c+d},\frac {1}{2} (e+f x),\frac {2 a}{a+b}\right ) \sqrt {g \sec (e+f x)}}{d (c+d) f \sqrt {a+b \sec (e+f x)}} \]
2*b*g*(cos(1/2*f*x+1/2*e)^2)^(1/2)/cos(1/2*f*x+1/2*e)*EllipticPi(sin(1/2*f *x+1/2*e),2,2^(1/2)*(a/(a+b))^(1/2))*((b+a*cos(f*x+e))/(a+b))^(1/2)*(g*sec (f*x+e))^(1/2)/d/f/(a+b*sec(f*x+e))^(1/2)-2*(-a*d+b*c)*g*(cos(1/2*f*x+1/2* e)^2)^(1/2)/cos(1/2*f*x+1/2*e)*EllipticPi(sin(1/2*f*x+1/2*e),2*c/(c+d),2^( 1/2)*(a/(a+b))^(1/2))*((b+a*cos(f*x+e))/(a+b))^(1/2)*(g*sec(f*x+e))^(1/2)/ d/(c+d)/f/(a+b*sec(f*x+e))^(1/2)
Result contains complex when optimal does not.
Time = 25.56 (sec) , antiderivative size = 223, normalized size of antiderivative = 1.31 \[ \int \frac {(g \sec (e+f x))^{3/2} \sqrt {a+b \sec (e+f x)}}{c+d \sec (e+f x)} \, dx=-\frac {2 i g \sqrt {-\frac {a (-1+\cos (e+f x))}{a+b}} \sqrt {\frac {a (1+\cos (e+f x))}{a-b}} \cot (e+f x) \left (\operatorname {EllipticPi}\left (1-\frac {a}{b},i \text {arcsinh}\left (\sqrt {\frac {1}{a-b}} \sqrt {b+a \cos (e+f x)}\right ),\frac {-a+b}{a+b}\right )-\operatorname {EllipticPi}\left (\frac {(a-b) c}{-b c+a d},i \text {arcsinh}\left (\sqrt {\frac {1}{a-b}} \sqrt {b+a \cos (e+f x)}\right ),\frac {-a+b}{a+b}\right )\right ) \sqrt {g \sec (e+f x)} \sqrt {a+b \sec (e+f x)}}{\sqrt {\frac {1}{a-b}} d f \sqrt {b+a \cos (e+f x)}} \]
((-2*I)*g*Sqrt[-((a*(-1 + Cos[e + f*x]))/(a + b))]*Sqrt[(a*(1 + Cos[e + f* x]))/(a - b)]*Cot[e + f*x]*(EllipticPi[1 - a/b, I*ArcSinh[Sqrt[(a - b)^(-1 )]*Sqrt[b + a*Cos[e + f*x]]], (-a + b)/(a + b)] - EllipticPi[((a - b)*c)/( -(b*c) + a*d), I*ArcSinh[Sqrt[(a - b)^(-1)]*Sqrt[b + a*Cos[e + f*x]]], (-a + b)/(a + b)])*Sqrt[g*Sec[e + f*x]]*Sqrt[a + b*Sec[e + f*x]])/(Sqrt[(a - b)^(-1)]*d*f*Sqrt[b + a*Cos[e + f*x]])
Time = 2.06 (sec) , antiderivative size = 170, normalized size of antiderivative = 1.00, number of steps used = 13, number of rules used = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {3042, 4459, 3042, 4346, 3042, 3286, 3042, 3284, 4463, 3042, 3286, 3042, 3284}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {(g \sec (e+f x))^{3/2} \sqrt {a+b \sec (e+f x)}}{c+d \sec (e+f x)} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {\left (g \csc \left (e+f x+\frac {\pi }{2}\right )\right )^{3/2} \sqrt {a+b \csc \left (e+f x+\frac {\pi }{2}\right )}}{c+d \csc \left (e+f x+\frac {\pi }{2}\right )}dx\) |
\(\Big \downarrow \) 4459 |
\(\displaystyle \frac {b \int \frac {(g \sec (e+f x))^{3/2}}{\sqrt {a+b \sec (e+f x)}}dx}{d}-\frac {(b c-a d) \int \frac {(g \sec (e+f x))^{3/2}}{\sqrt {a+b \sec (e+f x)} (c+d \sec (e+f x))}dx}{d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {b \int \frac {\left (g \csc \left (e+f x+\frac {\pi }{2}\right )\right )^{3/2}}{\sqrt {a+b \csc \left (e+f x+\frac {\pi }{2}\right )}}dx}{d}-\frac {(b c-a d) \int \frac {\left (g \csc \left (e+f x+\frac {\pi }{2}\right )\right )^{3/2}}{\sqrt {a+b \csc \left (e+f x+\frac {\pi }{2}\right )} \left (c+d \csc \left (e+f x+\frac {\pi }{2}\right )\right )}dx}{d}\) |
\(\Big \downarrow \) 4346 |
\(\displaystyle \frac {b g \sqrt {g \sec (e+f x)} \sqrt {a \cos (e+f x)+b} \int \frac {\sec (e+f x)}{\sqrt {b+a \cos (e+f x)}}dx}{d \sqrt {a+b \sec (e+f x)}}-\frac {(b c-a d) \int \frac {\left (g \csc \left (e+f x+\frac {\pi }{2}\right )\right )^{3/2}}{\sqrt {a+b \csc \left (e+f x+\frac {\pi }{2}\right )} \left (c+d \csc \left (e+f x+\frac {\pi }{2}\right )\right )}dx}{d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {b g \sqrt {g \sec (e+f x)} \sqrt {a \cos (e+f x)+b} \int \frac {1}{\sin \left (e+f x+\frac {\pi }{2}\right ) \sqrt {b+a \sin \left (e+f x+\frac {\pi }{2}\right )}}dx}{d \sqrt {a+b \sec (e+f x)}}-\frac {(b c-a d) \int \frac {\left (g \csc \left (e+f x+\frac {\pi }{2}\right )\right )^{3/2}}{\sqrt {a+b \csc \left (e+f x+\frac {\pi }{2}\right )} \left (c+d \csc \left (e+f x+\frac {\pi }{2}\right )\right )}dx}{d}\) |
\(\Big \downarrow \) 3286 |
\(\displaystyle \frac {b g \sqrt {g \sec (e+f x)} \sqrt {\frac {a \cos (e+f x)+b}{a+b}} \int \frac {\sec (e+f x)}{\sqrt {\frac {b}{a+b}+\frac {a \cos (e+f x)}{a+b}}}dx}{d \sqrt {a+b \sec (e+f x)}}-\frac {(b c-a d) \int \frac {\left (g \csc \left (e+f x+\frac {\pi }{2}\right )\right )^{3/2}}{\sqrt {a+b \csc \left (e+f x+\frac {\pi }{2}\right )} \left (c+d \csc \left (e+f x+\frac {\pi }{2}\right )\right )}dx}{d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {b g \sqrt {g \sec (e+f x)} \sqrt {\frac {a \cos (e+f x)+b}{a+b}} \int \frac {1}{\sin \left (e+f x+\frac {\pi }{2}\right ) \sqrt {\frac {b}{a+b}+\frac {a \sin \left (e+f x+\frac {\pi }{2}\right )}{a+b}}}dx}{d \sqrt {a+b \sec (e+f x)}}-\frac {(b c-a d) \int \frac {\left (g \csc \left (e+f x+\frac {\pi }{2}\right )\right )^{3/2}}{\sqrt {a+b \csc \left (e+f x+\frac {\pi }{2}\right )} \left (c+d \csc \left (e+f x+\frac {\pi }{2}\right )\right )}dx}{d}\) |
\(\Big \downarrow \) 3284 |
\(\displaystyle \frac {2 b g \sqrt {g \sec (e+f x)} \sqrt {\frac {a \cos (e+f x)+b}{a+b}} \operatorname {EllipticPi}\left (2,\frac {1}{2} (e+f x),\frac {2 a}{a+b}\right )}{d f \sqrt {a+b \sec (e+f x)}}-\frac {(b c-a d) \int \frac {\left (g \csc \left (e+f x+\frac {\pi }{2}\right )\right )^{3/2}}{\sqrt {a+b \csc \left (e+f x+\frac {\pi }{2}\right )} \left (c+d \csc \left (e+f x+\frac {\pi }{2}\right )\right )}dx}{d}\) |
\(\Big \downarrow \) 4463 |
\(\displaystyle \frac {2 b g \sqrt {g \sec (e+f x)} \sqrt {\frac {a \cos (e+f x)+b}{a+b}} \operatorname {EllipticPi}\left (2,\frac {1}{2} (e+f x),\frac {2 a}{a+b}\right )}{d f \sqrt {a+b \sec (e+f x)}}-\frac {g (b c-a d) \sqrt {g \sec (e+f x)} \sqrt {a \cos (e+f x)+b} \int \frac {1}{\sqrt {b+a \cos (e+f x)} (d+c \cos (e+f x))}dx}{d \sqrt {a+b \sec (e+f x)}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {2 b g \sqrt {g \sec (e+f x)} \sqrt {\frac {a \cos (e+f x)+b}{a+b}} \operatorname {EllipticPi}\left (2,\frac {1}{2} (e+f x),\frac {2 a}{a+b}\right )}{d f \sqrt {a+b \sec (e+f x)}}-\frac {g (b c-a d) \sqrt {g \sec (e+f x)} \sqrt {a \cos (e+f x)+b} \int \frac {1}{\sqrt {b+a \sin \left (e+f x+\frac {\pi }{2}\right )} \left (d+c \sin \left (e+f x+\frac {\pi }{2}\right )\right )}dx}{d \sqrt {a+b \sec (e+f x)}}\) |
\(\Big \downarrow \) 3286 |
\(\displaystyle \frac {2 b g \sqrt {g \sec (e+f x)} \sqrt {\frac {a \cos (e+f x)+b}{a+b}} \operatorname {EllipticPi}\left (2,\frac {1}{2} (e+f x),\frac {2 a}{a+b}\right )}{d f \sqrt {a+b \sec (e+f x)}}-\frac {g (b c-a d) \sqrt {g \sec (e+f x)} \sqrt {\frac {a \cos (e+f x)+b}{a+b}} \int \frac {1}{\sqrt {\frac {b}{a+b}+\frac {a \cos (e+f x)}{a+b}} (d+c \cos (e+f x))}dx}{d \sqrt {a+b \sec (e+f x)}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {2 b g \sqrt {g \sec (e+f x)} \sqrt {\frac {a \cos (e+f x)+b}{a+b}} \operatorname {EllipticPi}\left (2,\frac {1}{2} (e+f x),\frac {2 a}{a+b}\right )}{d f \sqrt {a+b \sec (e+f x)}}-\frac {g (b c-a d) \sqrt {g \sec (e+f x)} \sqrt {\frac {a \cos (e+f x)+b}{a+b}} \int \frac {1}{\sqrt {\frac {b}{a+b}+\frac {a \sin \left (e+f x+\frac {\pi }{2}\right )}{a+b}} \left (d+c \sin \left (e+f x+\frac {\pi }{2}\right )\right )}dx}{d \sqrt {a+b \sec (e+f x)}}\) |
\(\Big \downarrow \) 3284 |
\(\displaystyle \frac {2 b g \sqrt {g \sec (e+f x)} \sqrt {\frac {a \cos (e+f x)+b}{a+b}} \operatorname {EllipticPi}\left (2,\frac {1}{2} (e+f x),\frac {2 a}{a+b}\right )}{d f \sqrt {a+b \sec (e+f x)}}-\frac {2 g (b c-a d) \sqrt {g \sec (e+f x)} \sqrt {\frac {a \cos (e+f x)+b}{a+b}} \operatorname {EllipticPi}\left (\frac {2 c}{c+d},\frac {1}{2} (e+f x),\frac {2 a}{a+b}\right )}{d f (c+d) \sqrt {a+b \sec (e+f x)}}\) |
(2*b*g*Sqrt[(b + a*Cos[e + f*x])/(a + b)]*EllipticPi[2, (e + f*x)/2, (2*a) /(a + b)]*Sqrt[g*Sec[e + f*x]])/(d*f*Sqrt[a + b*Sec[e + f*x]]) - (2*(b*c - a*d)*g*Sqrt[(b + a*Cos[e + f*x])/(a + b)]*EllipticPi[(2*c)/(c + d), (e + f*x)/2, (2*a)/(a + b)]*Sqrt[g*Sec[e + f*x]])/(d*(c + d)*f*Sqrt[a + b*Sec[e + f*x]])
3.3.80.3.1 Defintions of rubi rules used
Int[1/(((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])*Sqrt[(c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)]]), x_Symbol] :> Simp[(2/(f*(a + b)*Sqrt[c + d]))*EllipticPi[ 2*(b/(a + b)), (1/2)*(e - Pi/2 + f*x), 2*(d/(c + d))], x] /; FreeQ[{a, b, c , d, e, f}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] && GtQ[c + d, 0]
Int[1/(((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])*Sqrt[(c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)]]), x_Symbol] :> Simp[Sqrt[(c + d*Sin[e + f*x])/(c + d)]/Sqrt [c + d*Sin[e + f*x]] Int[1/((a + b*Sin[e + f*x])*Sqrt[c/(c + d) + (d/(c + d))*Sin[e + f*x]]), x], x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[b*c - a* d, 0] && NeQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] && !GtQ[c + d, 0]
Int[(csc[(e_.) + (f_.)*(x_)]*(d_.))^(3/2)/Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_. ) + (a_)], x_Symbol] :> Simp[d*Sqrt[d*Csc[e + f*x]]*(Sqrt[b + a*Sin[e + f*x ]]/Sqrt[a + b*Csc[e + f*x]]) Int[1/(Sin[e + f*x]*Sqrt[b + a*Sin[e + f*x]] ), x], x] /; FreeQ[{a, b, d, e, f}, x] && NeQ[a^2 - b^2, 0]
Int[((csc[(e_.) + (f_.)*(x_)]*(g_.))^(3/2)*Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_ .) + (a_)])/(csc[(e_.) + (f_.)*(x_)]*(d_.) + (c_)), x_Symbol] :> Simp[b/d Int[(g*Csc[e + f*x])^(3/2)/Sqrt[a + b*Csc[e + f*x]], x], x] - Simp[(b*c - a*d)/d Int[(g*Csc[e + f*x])^(3/2)/(Sqrt[a + b*Csc[e + f*x]]*(c + d*Csc[e + f*x])), x], x] /; FreeQ[{a, b, c, d, e, f, g}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0]
Int[(csc[(e_.) + (f_.)*(x_)]*(g_.))^(3/2)/(Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_ .) + (a_)]*(csc[(e_.) + (f_.)*(x_)]*(d_.) + (c_))), x_Symbol] :> Simp[g*Sqr t[g*Csc[e + f*x]]*(Sqrt[b + a*Sin[e + f*x]]/Sqrt[a + b*Csc[e + f*x]]) Int [1/(Sqrt[b + a*Sin[e + f*x]]*(d + c*Sin[e + f*x])), x], x] /; FreeQ[{a, b, c, d, e, f, g}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0]
Result contains complex when optimal does not.
Time = 8.22 (sec) , antiderivative size = 445, normalized size of antiderivative = 2.62
method | result | size |
default | \(-\frac {2 i g \left (\operatorname {EllipticF}\left (i \left (\cot \left (f x +e \right )-\csc \left (f x +e \right )\right ), \sqrt {-\frac {a -b}{a +b}}\right ) a c d +\operatorname {EllipticF}\left (i \left (\cot \left (f x +e \right )-\csc \left (f x +e \right )\right ), \sqrt {-\frac {a -b}{a +b}}\right ) a \,d^{2}-\operatorname {EllipticF}\left (i \left (\cot \left (f x +e \right )-\csc \left (f x +e \right )\right ), \sqrt {-\frac {a -b}{a +b}}\right ) b c d -\operatorname {EllipticF}\left (i \left (\cot \left (f x +e \right )-\csc \left (f x +e \right )\right ), \sqrt {-\frac {a -b}{a +b}}\right ) b \,d^{2}-2 \operatorname {EllipticPi}\left (i \left (\cot \left (f x +e \right )-\csc \left (f x +e \right )\right ), -1, i \sqrt {\frac {a -b}{a +b}}\right ) b \,c^{2}+2 \operatorname {EllipticPi}\left (i \left (\cot \left (f x +e \right )-\csc \left (f x +e \right )\right ), -1, i \sqrt {\frac {a -b}{a +b}}\right ) b \,d^{2}-2 \operatorname {EllipticPi}\left (i \left (\cot \left (f x +e \right )-\csc \left (f x +e \right )\right ), -\frac {c -d}{c +d}, i \sqrt {\frac {a -b}{a +b}}\right ) a c d +2 \operatorname {EllipticPi}\left (i \left (\cot \left (f x +e \right )-\csc \left (f x +e \right )\right ), -\frac {c -d}{c +d}, i \sqrt {\frac {a -b}{a +b}}\right ) b \,c^{2}\right ) \cos \left (f x +e \right ) \sqrt {a +b \sec \left (f x +e \right )}\, \sqrt {g \sec \left (f x +e \right )}\, \sqrt {\frac {b +a \cos \left (f x +e \right )}{\left (a +b \right ) \left (\cos \left (f x +e \right )+1\right )}}}{f d \left (c +d \right ) \left (c -d \right ) \left (b +a \cos \left (f x +e \right )\right ) \sqrt {\frac {1}{\cos \left (f x +e \right )+1}}}\) | \(445\) |
-2*I*g/f/d/(c+d)/(c-d)*(EllipticF(I*(cot(f*x+e)-csc(f*x+e)),(-(a-b)/(a+b)) ^(1/2))*a*c*d+EllipticF(I*(cot(f*x+e)-csc(f*x+e)),(-(a-b)/(a+b))^(1/2))*a* d^2-EllipticF(I*(cot(f*x+e)-csc(f*x+e)),(-(a-b)/(a+b))^(1/2))*b*c*d-Ellipt icF(I*(cot(f*x+e)-csc(f*x+e)),(-(a-b)/(a+b))^(1/2))*b*d^2-2*EllipticPi(I*( cot(f*x+e)-csc(f*x+e)),-1,I*((a-b)/(a+b))^(1/2))*b*c^2+2*EllipticPi(I*(cot (f*x+e)-csc(f*x+e)),-1,I*((a-b)/(a+b))^(1/2))*b*d^2-2*EllipticPi(I*(cot(f* x+e)-csc(f*x+e)),-(c-d)/(c+d),I*((a-b)/(a+b))^(1/2))*a*c*d+2*EllipticPi(I* (cot(f*x+e)-csc(f*x+e)),-(c-d)/(c+d),I*((a-b)/(a+b))^(1/2))*b*c^2)*cos(f*x +e)*(a+b*sec(f*x+e))^(1/2)*(g*sec(f*x+e))^(1/2)*(1/(a+b)*(b+a*cos(f*x+e))/ (cos(f*x+e)+1))^(1/2)/(b+a*cos(f*x+e))/(1/(cos(f*x+e)+1))^(1/2)
Timed out. \[ \int \frac {(g \sec (e+f x))^{3/2} \sqrt {a+b \sec (e+f x)}}{c+d \sec (e+f x)} \, dx=\text {Timed out} \]
\[ \int \frac {(g \sec (e+f x))^{3/2} \sqrt {a+b \sec (e+f x)}}{c+d \sec (e+f x)} \, dx=\int \frac {\left (g \sec {\left (e + f x \right )}\right )^{\frac {3}{2}} \sqrt {a + b \sec {\left (e + f x \right )}}}{c + d \sec {\left (e + f x \right )}}\, dx \]
\[ \int \frac {(g \sec (e+f x))^{3/2} \sqrt {a+b \sec (e+f x)}}{c+d \sec (e+f x)} \, dx=\int { \frac {\sqrt {b \sec \left (f x + e\right ) + a} \left (g \sec \left (f x + e\right )\right )^{\frac {3}{2}}}{d \sec \left (f x + e\right ) + c} \,d x } \]
\[ \int \frac {(g \sec (e+f x))^{3/2} \sqrt {a+b \sec (e+f x)}}{c+d \sec (e+f x)} \, dx=\int { \frac {\sqrt {b \sec \left (f x + e\right ) + a} \left (g \sec \left (f x + e\right )\right )^{\frac {3}{2}}}{d \sec \left (f x + e\right ) + c} \,d x } \]
Timed out. \[ \int \frac {(g \sec (e+f x))^{3/2} \sqrt {a+b \sec (e+f x)}}{c+d \sec (e+f x)} \, dx=\int \frac {\sqrt {a+\frac {b}{\cos \left (e+f\,x\right )}}\,{\left (\frac {g}{\cos \left (e+f\,x\right )}\right )}^{3/2}}{c+\frac {d}{\cos \left (e+f\,x\right )}} \,d x \]